package com.example.module_user.model

import com.example.lib_base.BaseResponse
import com.example.lib_http.RetrofitManager
import com.example.module_user.api.UserApiService
import com.example.module_user.entity.LoginEntity
import retrofit2.http.Query

class UserModel {
   private val api:UserApiService=RetrofitManager.instance.create(UserApiService::class.java)
    suspend fun login(pas:String,username:String): BaseResponse<LoginEntity>{
        return api.login(pas,username)
    }
    suspend fun register(pas:String,username:String): BaseResponse<LoginEntity>{
        return api.register(pas,username)
    }
}